<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="../Main/top.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/CustomTag" prefix="customTag"%>

<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：用户管理</span></div>
<div class="function_content">

<div class="addItem"><img src="../images/insert_icon.gif"><a href="preInsertUsers.action">添加用户</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="../images/edit_icon.png"><a href="../Users/listUsers.action?intercept=1">用户管理</a>
<img src="../images/edit_icon.png"><a href="../Roles/listRoles.action?intercept=1">角色管理</a>
<img src="../images/edit_icon.png"><a href="../Operations/listOperations.action?intercept=1">模块管理</a>
</div>

<div class="search_function">
<form action="searchListUsers.action" method="get" name="search_form" id="search_form" >
<input type="hidden" name="intercept" value="1">
<div class="sub_form">用户名：
<input type="text" name="users.userName" id="users.userName" value="<s:property value='users.userName' />"></div>
<div class="sub_form">真实姓名：
<input type="text" name="users.realName" id="users.realName" value="<s:property value='users.realName' />"></div>
<div class="sub_form">联系方式：
<input type="text" name="users.telNum" id="users.telNum" value="<s:property value='users.telNum' />"></div>
<div class="sub_form">创建者：
<input type="text" name="users.author" id="users.author" value="<s:property value='users.author' />"></div>
<div class="sub_form">管理范围：
<s:select name="users.level" list="listLevel" listKey="level" listValue="levelString"  headerKey="0" headerValue="全部" value="%{users.level}"></s:select>
</div>
<div class="sub_form">所管系所：
<input type="text" name="users.departmentName" id="users.departmentName" value="<s:property value='users.departmentName' />"></div>
<div class="sub_form"><input type="submit" value="搜索" class="button"></div>
</form>
</div>

<form method="post" name="adminUsersDel" id="adminUsersDel" action="deleteMoreUsers.action" >
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
<p><customTag:pages pageNo="${pagination.pageNo}" total="${pagination.totalPage}" theme="text" /></p>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTable">
  <tr class="title_line">
    <td><input type="checkbox" name="select_all" id="select_all" onClick="checkAll()" class="input_noborder"></td>
    <td>序号</td>
    <td>用户名</td>
	<td>真实姓名</td>
	<td>联系方式</td>
	<td>可管理的角色列表</td>
	<td>管理范围</td>
	<td>所管系所</td>
	<!--<td>所管班级</td>-->
	<td>创建者</td>
    <td>添加时间</td>
    <td>更新时间</td>
    <td>操作</td>
  </tr>
<s:iterator value="listUsers" status="stat">
  <tr>
  	<td><input type="checkbox" name="users.userIdString" id="allid" value="<s:property value='userId' />" class="input_noborder"></td>
    <td><s:property value="#stat.getIndex()+1" /></td>
    <td><s:property value="userName" /></td>
	<td><s:property value="realName" /></td>
	<td><s:property value="telNum" /></td>
    <td><s:property value="stringShowRoleName" escape="false"/></td>
	<td><s:property value="levelString" /></td>
	<td><s:property value="departmentName" /></td>
	<!--<td><s:property value="stringShowClassName" escape="false"/></td>-->
	<td><s:property value="author" /></td>
    <td><s:property value="gmtCreatedString" /></td>
    <td><s:property value="gmtModifiedString" /></td>
    <td><div class="br_line"><a href="preUpdateUsers.action?users.userId=<s:property value='userId' />">编辑</a></div><div class="br_line"> 
<a href="deleteUsers.action?users.userId=<s:property value='userId' />" onClick="return p_del();">删除</a></div></td>
  </tr>
 </s:iterator>
</table>
<p><customTag:pages pageNo="${pagination.pageNo}" total="${pagination.totalPage}" theme="text" /></p>
<input type="submit" name="submit" value="删除选中记录" class="button" onClick="return p_del();"/>
</form>
</div>

<%@ include file="../Main/bottom.jsp"%>

